<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('Merchant/merchant_action_log')}">商户登录记录</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="get" action="{:url('Merchant/merchant_action_log')}">
            客户名称:
            <input type="text" class="form-control" name="shop_name"  value="{:input('request.shop_name/s','')}" placeholder="请输入客户名称">&nbsp;&nbsp;&nbsp;
			访问IP:
            <input type="text" class="form-control" name="ip"  value="{:input('request.ip/s','')}" placeholder="请输入访问IP">&nbsp;&nbsp;&nbsp;
			访问域名:
			<input type="text" class="form-control" name="domain"  value="{:input('request.domain/s','')}" placeholder="请输入访问域名">&nbsp;&nbsp;&nbsp;
			<input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('Merchant/merchant_action_log')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>客户名称</th>
					<th>访问IP</th>
					<th>访问域名</th>
					<th>访问时间</th>
					<th>操作内容</th>
				</tr> 
			</thead> 
			<tbody>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.shop_name}</td>
					<td>{$vo.ip}</td>
					<td>{$vo.domain}</td>
					<td>{:date('Y-m-d H:i:s',$vo['visit_time'])}</td>
					<td>{$vo.action}</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="page"><span class="tt">共{$total}条</span>{$page}<span class="tt">每页20条</span></div>
		<style>
			.page{margin:0;}
			.page span.tt{border: 1px solid #ddd;padding: 6px 12px; line-height: 1.42857143; display:block; float:left;margin:20px 0px;}
			.page ul{float:left;}
		</style>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>